<?php /* Smarty version 2.6.20, created on 2017-04-16 10:33:44
         compiled from order_pay.htm */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'order_pay.htm', 36, false),)), $this); ?>
<link href="admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/script/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/script/jquery.ui.js"></script>
<div class="container">
<div class="oflow" style="height:230px">
<form name="form1" id="form1" action="module.php?m=product&s=order_opear.php" method="post">
<input name="id" type="hidden" id="id" value="<?php echo $this->_tpl_vars['de']['order_id']; ?>
">
<input name="uid" type="hidden" id="uid" value="<?php echo $this->_tpl_vars['de']['member_id']; ?>
">
<table class="table">
    <thead>
        <tr>
            <th class="partition" colspan="99">订单详情</th>
        </tr>
    </thead>
    <tbody>
    <tr>
        <td width="60">订单编号</td>
        <td colspan="3"><?php echo $this->_tpl_vars['de']['order_id']; ?>
 <b class="org"><?php echo $this->_tpl_vars['de']['order_pay_status']; ?>
</b></td>
    </tr>
    <tr>
        <td>产品总价:</td>
        <td width="200"><?php echo $this->_tpl_vars['config']['money']; ?>
<?php echo $this->_tpl_vars['de']['cost']; ?>
</td>
		<td width="60">配送费用:</td>
        <td><?php echo $this->_tpl_vars['config']['money']; ?>
<?php echo $this->_tpl_vars['de']['freight']; ?>
</td>
    </tr>
    <tr>

        <td>积分抵扣:</td>
        <td><?php echo $this->_tpl_vars['config']['money']; ?>
<?php echo $this->_tpl_vars['de']['cost_point']; ?>
</td>

        <td>应付总额:</td>
        <td colspan="2"><?php echo $this->_tpl_vars['config']['money']; ?>
<?php echo $this->_tpl_vars['de']['cost']+$this->_tpl_vars['de']['freight']; ?>
</td>
    </tr>
    <tr>
        <td>下单时间</td>
        <td colspan="3"><?php echo ((is_array($_tmp=$this->_tpl_vars['de']['create_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d&nbsp;%H:%M:%S") : smarty_modifier_date_format($_tmp, "%Y-%m-%d&nbsp;%H:%M:%S")); ?>
</td>
    </tr>
    <tr>
    	<td>支付方式：</td>
        <td colspan="3">
        <?php if ($this->_tpl_vars['de']['status'] == 1): ?>
            <select name="payment_id" class="w162">
            <?php $_from = $this->_tpl_vars['pay']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['list']):
?>
                <option <?php if ($this->_tpl_vars['de']['payment_id'] == $this->_tpl_vars['list']['payment_id']): ?>selected="selected"<?php endif; ?> value="<?php echo $this->_tpl_vars['list']['payment_id']; ?>
"><?php echo $this->_tpl_vars['list']['payment_name']; ?>
</option>
            <?php endforeach; endif; unset($_from); ?>
            </select>
        <?php else: ?>
			<?php echo $this->_tpl_vars['de']['payment_name']; ?>

        <?php endif; ?>
        </td>
    </tr>
    </tbody>
</table>
<div class="dialog_button">
<?php if ($this->_tpl_vars['de']['status'] == 1): ?>
    <input id="save" type="button" value="付费">
    <input name="act" type="hidden" id="action" value="pay"> 
<?php else: ?>
    <input id="close" type="button" value="关闭">
<?php endif; ?>  
</div>
</form>
<div id="error"></div> 
<script>
function $$(id) {
	return !id ? null : document.getElementById(id);
}
function ajaxpost(formid) {
	var ajaxframeid = 'ajaxframe';
	var ajaxframe = $$(ajaxframeid);
	if(!ajaxframe){
		var div = document.createElement('div');
		div.style.display = 'none';
		div.innerHTML = '<iframe name="' + ajaxframeid + '" id="' + ajaxframeid + '" loading="1"></iframe>';
		ajaxframe = $$(ajaxframeid);
		$$('append_parent').appendChild(div);
	}
	$$(formid).target = ajaxframeid;
	$$(formid).submit();
	window.parent.main.document.location.reload();
	DialogManager.close("order");
}
$("#save").click(function () {
	ajaxpost("form1");
	return false;
});
$("#close").click(function () {
	window.parent.main.document.location.reload();
	DialogManager.close("order");
});
</script>
</form>
</div>
</div>